package org.mendoza.salud.hvt.client.shared.model.personal;

import org.jboss.errai.common.client.api.annotations.Portable;
import org.jboss.errai.databinding.client.api.Bindable;
import org.mendoza.salud.hvt.client.shared.model.AbstractEntity;
import org.mendoza.salud.hvt.client.shared.model.global.Persona;

import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 * Created by administrador on 08/09/14.
 */
@Entity
@Portable
@Bindable
public class Empleado extends AbstractEntity {
    public Empleado(){}

    @OneToOne
    private Persona persona;
    private String cuil;

    public Persona getPersona() {
        return persona;
    }

    public void setPersona(Persona persona) {
        this.persona = persona;
    }

    public String getCuil() {
        return cuil;
    }

    public void setCuil(String cuil) {
        this.cuil = cuil;
    }
}
